using System;
using NUnit.Framework;
using DotNetXmlSwfChart;

namespace DotNetXmlSwfChart.UnitTest
{
    [TestFixture]
    public class SeriesGapFixture
    {
        [Test]
        public void ToSourceXml()
        {
            string testXml =
                "<series_gap bar_gap='2' " +
                            "set_gap='5' " +
                            "/>";
            SeriesGap sg = new SeriesGap();
            sg.BarGap = 2;
            sg.SetGap = 5;
            Assert.AreEqual(testXml, sg.ToSourceXML());
        }
    }
}
